<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib  uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib  uri="http://www.joda.org/joda/time/tags" prefix="joda" %>

<table class="table table-bordered table-hover">
<thead>
<tr>
<th>标题</th>
<th width="150">打印版</th>
<th width="150">单位</th>
<th width="200">上报人</th>
<th width="200">上报日期</th>
<th>管理</th>
</tr>
<tr>
<td colspan="5">
<button class="btn btn-success" onclick="newOne();">
<i class="icon-plus"></i>新增报表
</button>
</td>
</tr>
</thead>
<tbody>
   <c:forEach items="${pager.rows}" var="item">
     <tr>
       <td>
       <button class="btn btn-small btn-success" onclick="showOne('${item.id}');">
       <i class="icon-edit"></i>
                     编辑</button>
       </td>
       <td>
       <button class="btn btn-small btn-success" onclick="showPrint('${item.id}');">
       <i class="icon-edit"></i>
                     打印版</button>
       </td>
        <td>
          ${item.department.name}
       </td>
       
       <td>${item.maker.username}[${item.maker.localName}]</td>
      
       <td>
       <joda:format value="${item.createDate}"  pattern="yyyy-MM-dd HH:mm:ss"/>
       </td>       
       <td>
       <button class="btn btn-danger btn-mini" onclick="removeOne('${item.id}',this)">
       	<i class="icon-remove"></i>
       </button>
       </td>
     </tr>
   </c:forEach>
</tbody>
<tfoot>
  <tr>
    <td colspan="4">
      ${pager.pagination}
    </td>
  </tr>
</tfoot>
</table>

<script type="text/javascript" src="scripts/apps/armmonthreporter/list.js"></script>
